package com.testng.extentReportDemo;


import org.testng.Assert;
import org.testng.Reporter;
import org.testng.annotations.Test;

/**
 * @author bigFish
 * @Title: 测试报告、断言、日志
 */
public class extentReport {
    @Test
    public void test1() {
        Assert.assertEquals(1, 2);
    }

    @Test
    public void test2() {
        Assert.assertEquals(1, 1);
    }

    @Test
    public void test3() {
        Assert.assertEquals("拒绝", "拒绝");
    }

    @Test
    public void log(){
        Reporter.log("这是我们自己写的日志");
        throw new RuntimeException("这是自己运行时的异常");
    }
}
